package com.scnu.service.impl;

import com.scnu.mapper.AdminUserMapper;
import com.scnu.mapper.AdminUserTokenMapper;
import com.scnu.pojo.AdminUser;
import com.scnu.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminUserServiceImpl implements AdminUserService {
    @Resource
    AdminUserMapper mapper;

    @Resource
    AdminUserTokenMapper tokenMapper;

    @Override
    public AdminUser login(String userName, String password) {
        return mapper.login(userName, password);
    }
}
